package com.chixing.day03_oop;

public class PhoneTest {
    public static void main(String[] args) {
        //instance 2 phone object with constructor within args and no args
        Phone phone1 = new Phone();
        phone1.setPhoneName("小米");
        phone1.setPhoneprice(2000);
        phone1.setPhoneMemory("6+128G");

        Phone phone2 = new Phone("华为",4000,"8+256G");

        System.out.println("品牌：" + phone1.getPhoneName() + " 价格：" + phone1.getPhoneprice() + " 内存：" + phone1.getPhoneMemory());
        System.out.println("品牌：" + phone2.getPhoneName() + " 价格：" + phone2.getPhoneprice() + " 内存：" + phone2.getPhoneMemory());
    }
}
